<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../Public/css/basic.css"/>
<link rel="stylesheet" href="../Public/css/userinfo.css"/>
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="../Public/js/sidebar.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        if($('p.remind').css('display') == 'block') {
            setTimeout(function() {
                $('p.remind').hide();
                history.back();
            }, 3000);
            
        } 
        $('form').submit(function() {
            var phone = $('input[name=phone]').val();
            var qq = $('input[name=qq]').val();
            var realName = $('input[name=real_name]').val();
            if(phone != '') {
                if(phone.length != 11) {
                    alert('手机号码必须是11位!');
                    return false; 
                }
                if(isNaN(phone)) {
                    alert('手机号码必须为数字!');
                    return false;  
                }
            }
            if(qq != '') {
                if(qq.length < 5 || qq.length > 12) {
                    alert('qq号码长度必须为5到12位!');
                    return false; 
                }
                if(isNaN(qq)) {
                    alert('qq号码必须为数字!');
                    return false;  
                }
            }
            if(realName != '') {
                if(realName.length < 2 || realName.length > 5) {
                    alert('真实姓名必须为2~5位!');
                    return false; 
                }
            }
            return true;
        });
    });
</script>
<title>三原县信息网 -- 用户资料完善</title>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="header">
    <div class="top">
        <a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" class="look" target="_blank">查看我的空间</a> <span><?php echo ($now); ?> <font style="color:#06f;"><?php echo ($hello); ?></font></span>
        <span class="a"><a href="__URL__/mySpace/user/<?php echo (cookie('user')); ?>" target="_blank" class="user"><?php echo (cookie('user')); ?></a> <a href="__ROOT__/member.php/Index/message/act/in" style="color:#333;">我的消息 <?php if(!empty($notread)): ?><strong><?php echo ($notread); ?></strong><?php endif; ?></a> <a href="__URL__/logout" style="color:#333;">退出</a></span>
    </div>
    <div class="logo"><a href="/"><img src="../Public/images/logo.gif"/></a> <h3>用户中心</h3></div>
</div>
</body>
</html>
<div id="map"><img src="../Public/images/loc.gif" /> <a href="__ROOT__/member.php">用户中心</a> &gt; 完善资料</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="sidebar">
    <dl>
        <dt>
        <?php if($face == ''): ?><img src="../Public/images/noavatar_small.gif" />
        <?php else: ?>
        <img src="/<?php echo ($face); ?>" /><?php endif; ?>
        </dt>
        <dd><a href="__ROOT__/member.php"><img src="../Public/images/house.gif" style="position:relative;top:2px;right:3px;"/>用户首页</a></dd>
        <dd><a href="__ROOT__/member.php/Index/face"><img src="../Public/images/image.gif" style="position:relative;top:4px;right:3px;"/>头像管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/userInfo"><img src="../Public/images/note.gif" style="position:relative;top:4px;right:3px;"/>完善资料</a></dd>
        <dd><a href="__ROOT__/member.php/Index/myInfo"><img src="../Public/images/info.gif" style="position:relative;top:4px;right:3px;"/>信息管理</a></dd>
        <dd><a href="__ROOT__/member.php/Index/message/act/in"><img src="../Public/images/chat.gif" style="position:relative;top:4px;right:3px;"/>我的消息</a></dd>
        <dd><a href="__ROOT__/member.php/Index/pay/act/pay"><img src="../Public/images/coins.gif" style="position:relative;top:4px;right:3px;"/>充值服务</a></dd>
        <dd><a href="__ROOT__/member.php/Index/upPass"><img src="../Public/images/password.gif" style="position:relative;top:4px;right:3px;"/>密码管理</a></dd>
    </dl>
</div>
</body>
</html>
<div id="main">
    <div class="up">
        <h3>资料完善</h3>
        <p class="remind" style="display:<?php echo ($s); ?>"><img src="../Public/images/valid.gif" style="position:relative;top:3px;right:3px;"/>操作成功!</p>
        <form method="post" action="?act=send">
        <dl>
            <dd>用户名称：<input type="text" readonly="readonly" class="text" value="<?php echo (cookie('user')); ?>" style="background:#eee;"/></dd>
            <dd>真实姓名：<input type="text" name="real_name" class="text" value="<?php echo ($current["real_name"]); ?>"/></dd>
            <dd>性　　别：
                        <?php if($current['sex'] == 1): ?><input type="radio" name="sex" value="1 " checked="checked"/>男 <input type="radio" name="sex" value="0" />女
                        <?php elseif($current['sex'] == 0): ?>
                        <input type="radio" name="sex" value="1 "/>男 <input type="radio" name="sex" value="0 " checked="checked"/>女<?php endif; ?>
            </dd>
            <dd>联系手机：<input type="text" name="phone" class="text" value="<?php echo ($current["phone"]); ?>"/> <input type="checkbox" name="is_ay_phone" value="1"/>是否同步到更新全部信息的联系电话</dd>
            <dd>Q　　　Q：<input type="text" name="qq" class="text" value="<?php echo ($current["qq"]); ?>"/> <input type="checkbox" name="is_ay_qq" value="1"/>是否同步到更新全部信息的联系QQ</dd>
            <dd class="sub"><input type="submit" name="send" value="更新资料" style="width:100px;height:30px;border:1px solid #ccc;cursor:pointer;border-radius:5px;"/></dd>
        </dl>
        </form>
    </div>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div id="footer">
    <p class="f">©三原县信息网 晋 ICP备12009119号</p>
    <p>Powered by 信息网 xxx.xxxx.xx</p>
</div>
</body>
</html>
</body>
</html>